package com.jhsw.roadsun.module.business.controller.admin.useraddress.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.jhsw.roadsun.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.jhsw.roadsun.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 地址簿分页 Request VO")
@Data
public class UserAddressPageReqVO extends PageParam {

    @Schema(description = "用户ID", example = "25449")
    private Long userId;

    @Schema(description = "姓名", example = "李四")
    private String name;

    @Schema(description = "类型（0寄件地址 1收件地址）", example = "2")
    private Boolean type;

    @Schema(description = "默认地址（0否 1是）")
    private Boolean isNormal;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}